<?php

	$rawTweet = "Something bad happened...";
	if (isset(@$_REQUEST['rawtweet'])
		$rawTweet = @$_REQUEST['rawtweet'];

header("Content-type: image/png");


include ("paths/registry.php");

//select a random image/path combo

$map = "twbacks/bricks.png";

$img = ImageCreateFromPNG($map);

$color = "ffffff";

$int = hexdec($color);

$arr = array("red" => 0xFF & ($int >> 0x10),
               "green" => 0xFF & ($int >> 0x8),
               "blue" => 0xFF & $int);

$clr = ImageColorAllocate($img, $arr["red"], $arr["green"], $arr["blue"]); 

imagettftext($img, 20, 0, 5, 240, $clr, 'Aquabase.ttf', $line1);
imagettftext($img, 20, 0, 5, 260, $clr, 'Aquabase.ttf', $line2);
imagettftext($img, 20, 0, 5, 280, $clr, 'Aquabase.ttf', $line3);
imagettftext($img, 20, 0, 5, 300, $clr, 'Aquabase.ttf', $line4);

ImagePNG($img); 
ImageDestroy($img);  // 

?> 
 
